package com.sinosoft.jwjw.component.mapper;

import com.github.pagehelper.Page;
import com.sinosoft.jwjw.component.model.DepartMentUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface DepartMentUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(DepartMentUser record);

    int insertSelective(DepartMentUser record);

    DepartMentUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(DepartMentUser record);

    int updateByPrimaryKey(DepartMentUser record);

    /**
     * 查找全部用户的方法
     * @return
     */
    List<DepartMentUser> selectAllDepartMentUser();

    /**
     * 带分页信息的的方法
     * @return
     */
    Page<DepartMentUser> selectAllDepartMentUserByPage();
}